﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Ping.Tests
{
    [TestClass]
    public class SendTests
    {
        [TestMethod]
        public void TestSendingPacket()
        {
            var send = new Send("google.com", true, 32, 120);
            Console.WriteLine("time={0} : tls={1} : status={2}", send.RoundtripTime, send.Ttl, send.Status);
        }
        [TestMethod]
        public void TestSendingLocalhost()
        {
            var send = new Send("localhost", true, 32, 120);
            Assert.AreEqual(System.Net.NetworkInformation.IPStatus.Success, send.Status);
        }
    }
}
